home *** CD-ROM | disk | FTP | other *** search
- Path: user1.mnsinc.com!huang
- From: huang@mnsinc.com (Szu-Wen Huang)
- Newsgroups: comp.lang.c
- Subject: Re: C/C++ cross-platform compatibility
- Date: 5 Mar 1996 14:06:51 GMT
- Organization: Monumental Network Systems
- Message-ID: <4hhhpr$8rp@news1.mnsinc.com>
- References: <4hfvlk$dn1@bay>
- NNTP-Posting-Host: user.mnsinc.com
- X-Newsreader: TIN [version 1.2 PL2]
-
- charrick@netrover.com wrote:
- : I'm working on an application I want to compile on many
- : different platforms. Somewhere along the line, I need to
- : obtain a list of all files in a directory. In OS/2, DOS,
- : WinNT, etc... the way to do this is with DosFindFirst and
- : DosFindNext. However, these are not part of the ANSI
- : standard, so I want to know, what should I use? Are these
- : actually supported on everything, or is there another way
- : to do this?
-
- Looking at all these questions is giving me an idea. There are
- plenty of books discussing standard C, but there seems to lack a
- good book that discusses non-standard C. It might be nice to
- have a book that does *not* discuss standard C (to save dozens
- of chapters), instead concentrates on porting platform specific
- code to other platforms. Oftentimes I find myself looking at a
- platform specific library function and end up just staring at it,
- trying to imagine how I would get it to compile under another
- platform. Thoughts?
-